﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CharToHex
{
    class CharToHex
    {
        static string StrToHex(string input)
        {
            StringBuilder sb = new StringBuilder();
            byte[] bytes = Encoding.UTF8.GetBytes(input);
            foreach (var item in bytes)
            {
                sb.Append(string.Format("\\x{0:X}", item));
            }
            return sb.ToString();
        }

        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string hext = StrToHex(input);
            Console.WriteLine(hext);
        }
    }
}
